#!/usr/bin/env python
# -*- coding: utf-8 -*-

from mktsend import Sender

username = 'sussan'
password = 'suSSan42'


s = Sender(username, password)
# Contactos segun RFC 822
# http://www.ietf.org/rfc/rfc0822.txt
# http://docs.python.org/library/rfc822.html
to = [
        unicode('Cesar Portela <ceportela@gmail.com>','utf-8'),
        unicode('Lucas Bonomo en Bieler <lucas.bonomo@bieler.com.ar>','utf-8'),
        ]
subject = unicode('Prueba para romper el HTML; de nico','utf-8')
text = unicode('Prueba solo texto.')
f = open("c:\\erpsussan.doc\\reporte-historicoProducto.html","r")
html = f.read()
f.close()
html = unicode(html)

print s.send(to,subject,text,html) # Esta linea debe devolver un "OK"
